package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.business.domain.THomeworkStuDetail;
import com.ruoyi.business.mapper.THomeworkStuDetailMapper;
import com.ruoyi.business.service.ITHomeworkStuDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author 最爱喝兽奶
 * @date 2022-08-13
 */
@Service
public class THomeworkStuDetailServiceImpl implements ITHomeworkStuDetailService
{
    @Autowired
    private THomeworkStuDetailMapper tHomeworkStuDetailMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param id 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public THomeworkStuDetail selectTHomeworkStuDetailById(Long id)
    {
        return tHomeworkStuDetailMapper.selectTHomeworkStuDetailById(id);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param tHomeworkStuDetail 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<THomeworkStuDetail> selectTHomeworkStuDetailList(THomeworkStuDetail tHomeworkStuDetail)
    {
        return tHomeworkStuDetailMapper.selectTHomeworkStuDetailList(tHomeworkStuDetail);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param tHomeworkStuDetail 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertTHomeworkStuDetail(THomeworkStuDetail tHomeworkStuDetail)
    {
        return tHomeworkStuDetailMapper.insertTHomeworkStuDetail(tHomeworkStuDetail);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param tHomeworkStuDetail 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateTHomeworkStuDetail(THomeworkStuDetail tHomeworkStuDetail)
    {
        return tHomeworkStuDetailMapper.updateTHomeworkStuDetail(tHomeworkStuDetail);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param ids 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteTHomeworkStuDetailByIds(Long[] ids)
    {
        return tHomeworkStuDetailMapper.deleteTHomeworkStuDetailByIds(ids);
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param id 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteTHomeworkStuDetailById(Long id)
    {
        return tHomeworkStuDetailMapper.deleteTHomeworkStuDetailById(id);
    }
}
